package cc.bluemc.modules.adminUser.entity;

import cc.bluemc.platform.utils.BeanUtil;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name="t_role")
public class Role implements Serializable{
    private Integer id;

    private String roleName;

    private String code;

    /**
     * 1:可用，0：不可用
     **/
    public Integer usable;


    public void setId(Integer id) {
        this.id = id;
    }
    @Id
    public Integer getId() {
        return id;
    }

    public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setUsable(Integer usable) {
        this.usable = usable;
    }

    public Integer getUsable() {
        return usable;
    }
    public String getUsableFomart(){
    	Object o= BeanUtil.fieldFormat(this, "usable");
    	return String.valueOf(o);
    }
}
